package com.example.yuejian21.nongfusanquan.yuejian21.javabean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Nongfusanquan on 2017-10-17.
 */

public class Couchbean implements Parcelable {


    /**
     * pm_name : 玖声2005
     * pm_pic : 2009.jpg
     */

    private String pm_name;
    private String pm_pic;
    /**
     * pm_id : 1
     * pc_id : 1
     * pm_info : 对不起，我要赢！
     */

    private int pm_id;
    private int pc_id;
    private String pm_info;

    protected Couchbean(Parcel in) {
        pm_name = in.readString();
        pm_pic = in.readString();
        pm_id = in.readInt();
        pc_id = in.readInt();
        pm_info = in.readString();
    }

    public static final Creator<Couchbean> CREATOR = new Creator<Couchbean>() {
        @Override
        public Couchbean createFromParcel(Parcel in) {
            return new Couchbean(in);
        }

        @Override
        public Couchbean[] newArray(int size) {
            return new Couchbean[size];
        }
    };

    public String getPm_name() {
        return pm_name;
    }

    public void setPm_name(String pm_name) {
        this.pm_name = pm_name;
    }

    public String getPm_pic() {
        return pm_pic;
    }

    public void setPm_pic(String pm_pic) {
        this.pm_pic = pm_pic;
    }


    public int getPm_id() {
        return pm_id;
    }

    public void setPm_id(int pm_id) {
        this.pm_id = pm_id;
    }

    public int getPc_id() {
        return pc_id;
    }

    public void setPc_id(int pc_id) {
        this.pc_id = pc_id;
    }

    public String getPm_info() {
        return pm_info;
    }

    public void setPm_info(String pm_info) {
        this.pm_info = pm_info;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(pm_name);
        dest.writeString(pm_pic);
        dest.writeInt(pm_id);
        dest.writeInt(pc_id);
        dest.writeString(pm_info);
    }
}
